<?php

namespace App\Library\Service;

use App\Library\Logic\IndexModuleLogic;
use Illuminate\Http\JsonResponse;

class IndexService extends BaseService
{
    /**
     * module
     * @return JsonResponse
     */
    public function module(): JsonResponse
    {
        return success(IndexModuleLogic::getByWhere(['open' => 1, 'orderBy' => 'sort'], null, ['file_id', 'title', 'tag']));
    }
}
